﻿#include<iostream>
using namespace std;
int main() {
	int a{ 0 }, b{ 0 };
	cin >> a;
	cin >> b;
	int c{ a - b };
	cout << "大：" << (a + b + c * ((c >> 31 << 1) + 1)) / 2 << endl;
	cout << "小：" << (a + b - c * ((c >> 31 << 1) + 1)) / 2 << endl;

}